#ifndef ARKUIFORGAME_SENSOR_MANAGER_H
#define ARKUIFORGAME_SENSOR_MANAGER_H

#include <napi/native_api.h>
#include "sensors/oh_sensor.h"
#include "hilog/log.h"
#include <thread>

class SensorManager {
public:
    SensorManager();
    ~SensorManager();
    static napi_value GetSensorInfos(napi_env env, napi_callback_info info);
    static napi_value Subscriber(napi_env env, napi_callback_info info);
    static napi_value UnSubscriber(napi_env env, napi_callback_info info);
    static constexpr Sensor_Type SENSOR_ID { SENSOR_TYPE_ACCELEROMETER };
    static constexpr uint32_t SENSOR_NAME_LENGTH_MAX = 64;
    static constexpr int64_t SENSOR_SAMPLE_PERIOD = 200000000;
    static constexpr int64_t INVALID_VALUE = -1;
    static constexpr float INVALID_RESOLUTION = -1.0F;
};
#endif //ARKUIFORGAME_SENSOR_MANAGER_H
